﻿using System;
using System.Collections.Generic;
using System.Data;
using ZX.HIS.Common;
namespace ZX.HIS.IDAL
{
	/// <summary>
	/// 接口层DrugWareHouse
	/// </summary>
	public interface IDrugWareHouse
    {
        #region 自写方法
        /// <summary>
        /// 药品入库表分页显示
        /// </summary>
        /// <param name="StockID"></param>
        /// <param name="PostDate"></param>
        /// <param name="PostDate1"></param>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <returns></returns>
        List<ZX.HIS.Model.DrugWareHouse> DrugWareHouseshow(int ProductId, string PostDate, string PostDate1, int PageIndex, int PageSize);
       
        /// <summary>
        /// 总条数
        /// </summary>
        /// <param name="StockID"></param>
        /// <param name="PostDate"></param>
        /// <param name="PostDate1"></param>
        /// <returns></returns>
        int PageInCount(int ProductId, string PostDate, string PostDate1);
        /// <summary>
        /// 添加库存
        /// </summary>
        /// <param name="mode"></param>
        /// <returns></returns>
        int DrugWareHouseAdd(ZX.HIS.Model.DrugWareHouse mode);
        /// <summary>
        /// 入库表的list集合
        /// </summary>
        /// <returns></returns>
         List<ZX.HIS.Model.DrugWareHouse> DrugWareHouseList();
         /// <summary>
         /// 修改药品库存表
         /// </summary>
         /// <param name="DWModel"></param>
         /// <returns></returns>
         bool DrugWareHouseUpt(ZX.HIS.Model.DrugWareHouse DWModel);
         /// <summary>
         /// 菜单预警的分页（存储过程）
         /// </summary>
         /// <param name="PageIndex"></param>
         /// <param name="PageSize"></param>
         /// <param name="DModel"></param>
         /// <returns></returns>
         PageClass<ZX.HIS.Model.DrugWareHouse> DrugWarePageList(int PageIndex, int PageSize, ZX.HIS.Model.DrugWareHouse DModel);
         /// <summary>
         /// 有效期的查询(存储过程)
        /// </summary>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <param name="DModel"></param>
        /// <returns></returns>

         PageClass<ZX.HIS.Model.DrugWareHouse> DrugWareHousePageList(int PageIndex, int PageSize, ZX.HIS.Model.DrugWareHouse DModel);
        
         
        #endregion
        #region  成员方法
        ///// <summary>
        ///// 得到最大ID
        ///// </summary>
        //int GetMaxId();
        ///// <summary>
        ///// 是否存在该记录
        ///// </summary>
        //bool Exists(int DrugWareId);
        ///// <summary>
        ///// 增加一条数据
        ///// </summary>
        //int Add(ZX.HIS.Model.DrugWareHouse model);
        ///// <summary>
        ///// 更新一条数据
        ///// </summary>
        //bool Update(ZX.HIS.Model.DrugWareHouse model);
        ///// <summary>
        ///// 删除一条数据
        ///// </summary>
        //bool Delete(int DrugWareId);
        //bool DeleteList(string DrugWareIdlist );
        ///// <summary>
        ///// 得到一个对象实体
        ///// </summary>
        //ZX.HIS.Model.DrugWareHouse GetModel(int DrugWareId);
        //ZX.HIS.Model.DrugWareHouse DataRowToModel(DataRow row);
        ///// <summary>
        ///// 获得数据列表
        ///// </summary>
        //DataSet GetList(string strWhere);
        ///// <summary>
        ///// 获得前几行数据
        ///// </summary>
        //DataSet GetList(int Top,string strWhere,string filedOrder);
        //int GetRecordCount(string strWhere);
        //DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex);
        ///// <summary>
        ///// 根据分页获得数据列表
        ///// </summary>
        ////DataSet GetList(int PageSize,int PageIndex,string strWhere);
		#endregion  成员方法
		#region  MethodEx

		#endregion  MethodEx
	} 
}
